# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kipi-plugins
pkgver=20.04.3
pkgrel=0
pkgdesc="A collection of plugins extending the KDE graphics and image applications"
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://userbase.kde.org/KIPI"
license="GPL-2.0-or-later AND GFDL-1.2-only"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtxmlpatterns-dev qt5-qtsvg-dev kconfig-dev kwindowsystem-dev kxmlgui-dev ki18n-dev karchive-dev kio-dev libkipi-dev"
source="https://download.kde.org/stable/release-service/$pkgver/src/kipi-plugins-$pkgver.tar.xz"
subpackages="$pkgname-lang"
options="!check" # No tests

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="9d3e0c4b04cba493c2be50ac3b418532257c18be421caef31e2c1fb82e03b6a3c183336cf73d9af8a1551f4bb79412c5bb2e21df66e56c8fee38be532bed7832  kipi-plugins-20.04.3.tar.xz"
